package name.huzhenbo.java.patterns.state;

class DoorAction {
    private String latestAction = "";

    public void open() {
        this.latestAction = "OPEN";
    }

    public void close() {
        this.latestAction = "CLOSE";
    }

    public void alarm() {
        this.latestAction = "ALARM";
    }

    public String getLatestAction() {
        return latestAction;
    }
}
